package com.didispace;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * Created by mdx on 10/29/16.
 */
@Component
public class MyMonitor {
    @Autowired
    private MyBean bean;

    @PostConstruct
    public void iniit()
    {
        System.out.println("Monitor --- application name is: "+ bean.getProp());
    }
}
